POST
/
v1
/
log-repositories
/
logs
/
search
curl --request POST \
  --url https://api.getmaxim.ai/v1/log-repositories/logs/search \
  --header 'Content-Type: application/json' \
  --header 'x-maxim-api-key: <api-key>' \
  --data '{
  "workspaceId": "<string>",
  "id": "<string>",
  "type": "session",
  "timestamp": {
    "gte": "<string>",
    "lte": "<string>"
  },
  "sessionId": "<string>",
  "searchQuery": "<string>",
  "traceFilters": {
    "combinator": "all",
    "filters": [
      {
        "columnName": "tags",
        "operator": "equal",
        "value": [
          {
            "key": "<string>",
            "value": "<string>"
          }
        ]
      }
    ]
  },
  "evaluatorFilters": {
    "combinator": "all",
    "filters": [
      {
        "evaluatorName": "<string>",
        "operator": "null",
        "value": "<any>"
      }
    ]
  },
  "page": 0,
  "limit": 10,
  "sorting": {
    "columnName": "<string>",
    "desc": true
  }
}'
{
  "data": {
    "uniqueTags": [
      "<string>"
    ],
    "logs": [
      {
        "id": "<string>",
        "tags": {},
        "timestamp": "<string>",
        "startTimestamp": "<string>",
        "endTimestamp": "<string>",
        "name": "<string>",
        "feedback": {
          "score": 123,
          "comment": "<string>"
        }
      }
    ]
  },
  "pagination": {
    "total": 123,
    "page": 123,
    "limit": 123
  }
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json

Response

200
application/json

Logs retrieved successfully

The response is of type object.